package com.ajk.server.service;
import java.util.List;

import com.ajk.server.model.TestAnswerItem;
import com.ajk.server.model.query.TestAnswerItemQuery;

/**
 * 答案选项  <br>
 * t_test_answer_item <br>
 * v1.0 2016-05-01
 */
 public interface TestAnswerItemService {
	
	/**
 	*根据ID删除 答案选项
 	*/
 	public Integer deleteTestAnswerItemById(Integer id);
 	
 	/**
 	*新增 答案选项
 	*/
 	public Integer batchInsertTestAnswerItem(List<? extends TestAnswerItem> testAnswerItems);
 	
 	/**
 	*新增 答案选项
 	*/
 	public Integer insertTestAnswerItem(TestAnswerItem domain);
 
 	
 	/**
 	*更新 答案选项
 	*/
 	public Integer updateTestAnswerItem(TestAnswerItem domain);
 	
 	/**
 	*根据ID查询 答案选项
 	*/
 	public TestAnswerItem findTestAnswerItemById(Integer id);

	/**
 	*通过query 查询 答案选项
 	*/
	public List<TestAnswerItem> findTestAnswerItemByQuery(TestAnswerItemQuery query);	
	
	/**
 	*通过query count总条数
 	*/
 	public Integer countTestAnswerItemByQuery(TestAnswerItemQuery query);
 	
 	/**
 	* 通过ids查询
 	*/
 	public List<TestAnswerItem> findTestAnswerItemByIds(List<Integer> ids);
 	
}	